package com.xgx.distqcp.Interceptor;


import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;
import com.jfinal.core.Controller;

import javax.servlet.http.HttpServletResponse;

public class AllowCrossInterceptor implements Interceptor {

    public void intercept(Invocation inv) {
        inv.invoke();
        inv.getController().getResponse().addHeader("Access-Control-Allow-Origin","*");

    }
}
